package com.toivan.mt.model;

import android.content.Context;
import android.graphics.drawable.Drawable;


import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;

import com.toivan.mt.R;

public enum MtQuickBeauty {
    STANDARD(R.string.standard, MtQuickBeautyDefault.STANDARD_DEFAULT, R.drawable.icon_standard),
    LOLITA(R.string.lolita, MtQuickBeautyDefault.LOLITA_DEFAULT, R.drawable.icon_lolita),
    GODDESS(R.string.goddess, MtQuickBeautyDefault.GODDESS_DEFAULT, R.drawable.icon_goddess),
    CELEBRITY(R.string.celebrity, MtQuickBeautyDefault.CELEBRITY_DEFAULT, R.drawable.icon_celebrity),
    NATURAL(R.string.natural, MtQuickBeautyDefault.NATURAL_DEFAULT, R.drawable.icon_natural),
    MILK(R.string.milk, MtQuickBeautyDefault.MILK_DEFAULT, R.drawable.icon_milk),
    CARMEL(R.string.carmel, MtQuickBeautyDefault.CARMEL_DEFAULT, R.drawable.icon_carmel),
    PAINTING(R.string.painting, MtQuickBeautyDefault.PAINTING_DEFAULT, R.drawable.icon_painting),
    NECTARINE(R.string.nectarine, MtQuickBeautyDefault.NECTARINE_DEFAULT, R.drawable.icon_nectarine),
    HOLIDAY(R.string.holiday, MtQuickBeautyDefault.HOLIDAY_DEFAULT, R.drawable.icon_holiday),
    LOW_END(R.string.low_end, MtQuickBeautyDefault.LOW_END_DEFAULT, R.drawable.icon_low_end);

    private final int stringId;
    private final MtQuickBeautyDefault quickBeautyDefault;
    private final int imageId;

    MtQuickBeauty(@StringRes int stringId, MtQuickBeautyDefault quickBeautyDefault, @DrawableRes int imageId) {
        this.stringId = stringId;
        this.quickBeautyDefault = quickBeautyDefault;
        this.imageId = imageId;
    }

    public String getString(@NonNull Context context) {
        return context.getResources().getString(stringId);
    }

    public Drawable getImageDrawable(@NonNull Context context) {
        return context.getResources().getDrawable(imageId);
    }

    public MtQuickBeautyDefault getQuickBeautyDefault() {
        return quickBeautyDefault;
    }


}
